import { Provider, Injectable } from '@opensumi/di';
import { NodeModule } from '@opensumi/ide-core-node';
import { ILowcodeNodeService, ILowcodeConnectionServerPath } from '../common';
import { LowcodeNodeService } from './lowcode.service';

@Injectable()
export class LowcodeModule extends NodeModule {
  providers: Provider[] = [
    {
      token: ILowcodeNodeService,
      useClass: LowcodeNodeService,
    }
  ];

  backServices = [
    {
      servicePath: ILowcodeConnectionServerPath,
      token: ILowcodeNodeService,
    },
  ];
}